-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transform called CommonJS imports #40
Conversation
transforms/cjs.js
Outdated
} | ||
} | ||
|
||
function createImport(j, name, source) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question could you not use util.createImportStatement()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're correct - let me fix this.
@xjamundx: Would it be possible to publish this change for the 1.6.0 release? |
Sorry for missing this. Yes we can get this in. |
yeah looks good to me |
This adds support for transforming the following:
Before:
After: